// ai相关
import { post, get, baseURL } from '@/utils/request'

/**
 * 获取所有ai量化合约交易所配置
 * @returns
 */
export const getContractListApi = () => get('/api/contractConfig/selectConfigList')

/**
 * 获取ai跟投的产品分类selectinvestlist
 * @returns
 */
export const getProductListApi = () => get(`/api/aifollow/selectproductlist`)

/**
 * 获取ai跟投的投资人列表
 * @returns
 */
export const getInvestListApi = (params) => get(`/api/aifollow/selectinvestlist?${params}`)


/**
 * 获取ai跟投的投资人详细信息
 * @returns
 */
export const getInvestInfoApi = (params) => get(`/api/aifollow/getinvestinfo?${params}`)

/// ************* 跟投订单
/**
 * 新增跟投订单信息
 * @returns
 */
export const submitFollowOrderApi = (params) => post('/api/aifollow/createfolloworder', params)

/**
 * 获取ai跟投的投资人列表
 * @returns
 */
export const getFollowOrderListApi = (params) => get(`/api/aifollow/getfolloworderlist?${params}`)


/**
 * 获取ai跟投的投资人详细信息
 * @returns
 */
export const getFollowOrderInfoApi = (params) => get(`/api/aifollow/getfolloworderinfo?${params}`)

/// ************** 跟投订单 